﻿using UnityEngine;
using UnityEngine.EventSystems;

namespace Jinndev.UI {
    
    /// <summary>
    /// 为模态UI增加点击背景回调
    /// </summary>
    public interface IBackground {

        /// <summary>
        /// 当modal=true时，点击背景触发，当docb=true时，返回是否允许关闭
        /// </summary>
        /// <returns>是否允许关闭</returns>
        bool OnClickBackground(PointerEventData.InputButton button, Vector2 position);

    }

}
